<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>注册</title>
<link href="/css/common.css" rel="stylesheet" type="text/css" />
<link href="/css/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="wrap">
  <form method="post" th:action="@{/toRegister}">

    <!-- main begin-->
    <div class="zclf login logns">
      <h1  class="blue">用户注册</h1>
      <h1 class="blue">提示消息<span th:text="${msg}" style="color: red"></span></h1>
      <dl>
        <dd>
          <label> <small>*</small>用户名</label>
          <input type="text" class="inputh lf"  name="username" />
        </dd>
        <dd>
          <label> <small>*</small>密码</label>
          <input type="text" class="inputh lf" name="userpassword" />

        </dd>
        <dd>
          <label> <small>*</small>身份证号</label>
          <input type="text" class="inputh lf" name="usercardno" />

        </dd>
        <dd>
          <label> <small>*</small>电话</label>
          <input type="text" class="inputh lf" name="usertel" />

        </dd>
        <dd>
          <label> <small>*</small>住址</label>
          <input type="text" class="inputh lf" name="useraddress"  />
        </dd>
        <dd>
          <label> <small>*</small>邮政编码</label>
          <input type="text" class="inputh lf" name="userpostnumber"/>
        </dd>
        <dd>
          <label class="lf" for="passwords">验证码：</label>
          <input type="text" class="inputh inputs lf" placeholder="验证码" id="passwords" name="code" autocomplete="off"/>
          <span class="wordp lf">
                                <img src="/getCode"  width="96" height="27" alt="" onclick="getCode(event)"/>
                            </span>
          <span class="blues lf"><a href="" title="">看不清</a></span>
        </dd>
        <dd class="hegas">
          <label>&nbsp;</label>
          <input name="" type="submit" value="立即注册" class="spbg buttombg buttombgs f14 lf" />
          <a class="spbg buttombg buttombgs f14 lf" href="/">跳转登录界面</a>
        </dd>
      </dl>
    </div>
  </form>

</div>
</body>
<script>
    function getCode (ev) {
        // console.log(ev)
        // console.log(this)
        var url = '/getCode?time='+new Date().getTime()
        ev.target.src=url
    }
</script>
</html>
